
from multiprocessing import Process,Pipe


def f(conn):
    conn.send([42,None,'hello'])
    conn.send([42,None,'hello'])
   # print(conn.recv([42,None,'hello']))
    conn.close()


if __name__ == '__main__':
    parent_conn, child_conn = Pipe()
    p = Process(target=f,args=(child_conn,))
    p.start()
    print(parent_conn.recv())
    print(parent_conn.recv())
    parent_conn.send([111,333])
   # print(parent_conn.recv())

    p.join()
